T=20; n=[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]; a=[642,325,650,967,807,582,55,916,59,555,354,673,405,369,81,764,429,910,228,485,451,902,625,435,465,617,93,675,920,158,977,840,350,431,270,403,533,118,694,51,128,257,514,642,954,75,327,852,939,48,153,926,639,852,213,426,658,304,147,970,429,550,601,744,960,360,866,959,385,553,938,444,814,366,407,773,637,664,996,332];